<template>
    <div>
        <el-form :model="robot_form"
            class="search_prod"
            label-width="120px">
            <el-form-item label="回复内容">
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            placeholder="回复内容"
                            v-model="robot_form.content "></el-input>
                    </el-col>
                </el-col>
                <el-col class="tr col_label"
                    :span="3">关键词&nbsp;&nbsp;&nbsp;</el-col>
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            placeholder="关键词"
                            v-model="robot_form.keyword"></el-input>
                    </el-col>
                </el-col>

            </el-form-item>
            <el-form-item>
                <el-row class="tl">
                    <el-col :span="24">
                        <el-button size="mini"
                            type="primary"
                            @click="robot_search_btn">查询</el-button>
                        <el-button size="mini"
                            type="primary"
                            @click="del_search_btn">一键清除</el-button>
                    </el-col>
                </el-row>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
export default {
  name: "countsearch",
  data() {
    return {
      robot_form: {
        content: "", // 回复内容
        keyword: "" // 关键词
      }
    };
  },
  components: {},
  methods: {
    del_search_btn() {
      this.robot_form = {
        content: "", // 回复内容
        keyword: "" // 关键词
      };

      this.$emit("send_search", this.robot_form);
    },
    robot_search_btn() {
      this.$emit("send_search", this.robot_form);
    }
  }
};
</script>
<style scoped>
</style>
